package com.blog.backend.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author fanggs
 * @Date 2021/7/12 0012 15:22
 */
public class UuidUtils {

    public  static String getId(){
        String numStr = "" ;
        String trandStr = String.valueOf((Math.random() * 9 + 1) * 10000);
        String dataStr = new SimpleDateFormat("yyyyMMddHHMMSS").format(new Date());
        numStr = trandStr.toString().substring(0, 5);
        numStr = numStr + dataStr ;
        return numStr;
    }
}
